package com.xinqi.modules.prepare.prepare.dto.req;

import com.xinqi.common.green.annotation.Text;
import com.xinqi.modules.prepare.common.PrepareLimitConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 备课区-请求对象-新增
 *
 * @author: system
 * @date: 2023/03/19
 */
@Data
@Schema(description = "备课区-请求对象-新增")
public class PrepareCreateDTO implements Serializable {

    /**
     * 备课区标题
     */
    @Schema(description = "备课区标题", hidden = true)
    private Long userId;

    /**
     * 备课区标题
     */
    @Text
    @Schema(description = "备课区标题", example = "语文备课区")
    @NotBlank(message = "备课区名称不能为空")
    @Size(max = PrepareLimitConstant.NAME_WORKS_LIMIT, message = "备课区名称不能超过15个字")
    private String name;
}
